package com.bob.like;

import cn.hutool.core.util.RandomUtil;
import com.bob.like.model.entity.User;
import com.bob.like.service.UserService;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

@SpringBootTest
class LikeApplicationTests {

    @Resource
    private  UserService userService;

    @Test
    void contextLoads() {
    }

    @Test
    void addUser() {
        for (int i = 2; i < 50000; i++) {
            User user = new User();
            user.setUsername(RandomUtil.randomString(6));
            userService.save(user);
        }
    }


}
